package com.zyl.courseservice.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Auther:郑誉略
 * Date: 2020-12-08 9:44
 * Description: <描述>
 */
@Configuration
@MapperScan({"com.zyl.courseservice.mapper"})
public class CourseConfig {

        @Bean
        public PaginationInterceptor paginationInterceptor() {
            return new PaginationInterceptor();
        }
}
